package com.yukefms.engine.running;

/**
 * @Description
 *    <ul>
 *        <li>inactived event: INACTIVE STATE</li>
 *        <li>actived event: ACTIVED STATE</li>
 *        <li>matched event: PartialSuccess State </li>
 *        <li>success event: SUCCESS state</li>
 *        <li>time out event: FAILURE STATE</li>
 *        <li>try-time out event: FAILURE STATE</li>
 *        <li>unmatched event: FAILURE STATE</li>
 *        <li>input-error event: FAILURE STATE</li>
 *    </ul>
 * @Author Ping
 * @Date 2021/6/26 7:45
 **/

public enum EventCode {
    /**
     * Invariant violated over time, which is as final result for related action
     */
    VIOLATED_INV(-3) ,
    /**
     * All assigned actions/scenarios are finished.
     */
    ALL_FINISHED(-2),
    /**
     * failed matched for action rule possibly since time out, trial out etc.
     */
    FAILED(-1) ,
    /**
     * successfully matched for BARule
     */
    SUCCESS(0),
    /**
     * the rule does not activated yet.
     */
    INACTIVED (1),
    /**
     * the rule was activated.
     */
    ACTIVED(2) ,
    /**
     * the rule was partially matched.
     */
    PARTIAL_MATCHED(3),
    /**
     * time out
     */
    TIME_OUT(4),
    /**
     * trial time out
     */
    TRIAL_OUT(5),
    /**
     * the rule was not matched or failed to matched.
     */
    UNMATCHED(6),
    /**
     * the tolerant number of input error was arrived, possibly since the camera error or the keep distance not right.
     */
    INPUT_ERROR(7) ;

    private final int code ;
    EventCode(int code) {
        this.code = code ;
    }
    @Override
    public String toString() {
        return String.valueOf(code) ;
    }




}
